import projectRequest from "./request";
import {FansListVo, FollowSingerListVo, InsertFollowSingerVo} from "../interface/FollowSingerInterface";

/**
 * 时间: 2024年3月13日 17点50分
 * 关注接口
 */

/**
 * 获取用户的粉丝
 * @param data
 */
export function getFansListBySingerIdApi(data:FollowSingerListVo) {
  return projectRequest.request({
    method:"post",
    url:"/followSinger/fans",
    data
  });
}

/**
 * 获取用户的关注
 * @param data
 */
export function getFollowSingerByUserIdApi(data:FansListVo) {
  return projectRequest.request({
    method:"post",
    url:"/followSinger/followSinger",
    data
  });
}


/**
 * 新增关注
 * @param data
 */
export function insertFollowSingerApi(data:InsertFollowSingerVo) {
  return projectRequest.request({
    method:"post",
    url:"/followSinger/insert",
    data
  });
}

export function deleteFollowSingerApi(data:InsertFollowSingerVo) {
  return projectRequest.request({
    method:"post",
    url:"/followSinger/delete",
    data
  });
}
